import request from '@/utils/request'

// 查询质量工作计划列表
export function listNcQualityWorkPlan(query) {
  return request({
    url: '/business/NcQualityWorkPlan/list',
    method: 'get',
    params: query
  })
}

// 查询质量工作计划详细
export function getNcQualityWorkPlan(id) {
  return request({
    url: '/business/NcQualityWorkPlan/' + id,
    method: 'get'
  })
}

// 新增质量工作计划
export function addNcQualityWorkPlan(data) {
  return request({
    url: '/business/NcQualityWorkPlan',
    method: 'post',
    data: data
  })
}

// 修改质量工作计划
export function updateNcQualityWorkPlan(data) {
  return request({
    url: '/business/NcQualityWorkPlan',
    method: 'put',
    data: data
  })
}

// 删除质量工作计划
export function delNcQualityWorkPlan(id) {
  return request({
    url: '/business/NcQualityWorkPlan/' + id,
    method: 'delete'
  })
}
